-- CALC_GOODS_BONUS_MONEY

--------------------------
-- 计算金币类商品奖励
-- @param user    玩家对象
-- @param args    market表中的bonus_args字段
return function(user, args)
    -- 金币奖励为基数+玩家拥有的冈布奥学徒数量 * fix，学徒数量最多取100
    local money          = args.money;
    local apprentice_fix = args.apprentice_fix;
    local worker_num     = AlchemyWorkshopM.getTotalWorkerNum();

    if worker_num == nil then
        worker_num = 0;
    end
    worker_num = math.min(worker_num, 100)

    local value = money + worker_num * apprentice_fix;
    return value;
end